/* package logik;

import java.io.*;
import java.lang.*;
import java.util.*;

public class Voucher {
	
	private Screen screen;
	private Keypad keypad;
	private int shutup = 1;
    
    while(shutup != 2){
    screen.displayMessageLine("Do you want a voucher printed? \n" +
    "1. YES \n2. NO \n");
    int yahoo = keypad.getInput(3);
		switch (yahoo) {
    		case 1:
    			try {
    				File x = new File("C:\\Dokumente und Einstellungen\\Besitzer\\Desktop\\Voucher\\Voucher.txt");
    				x.getParentFile().mkdirs();
    				// FileWriter writer = new FileWriter(x);
    				screen.displayMessageLine("You created a voucher \n");
    				PrintWriter out = new PrintWriter(new FileWriter("test.txt"));
    			    out.write("Hi");  //Replace with the string you are trying to write  
    			    out.close();
    			} //end try
    			catch(Exception e){
    				screen.displayMessageLine("Could not create the voucher!");
    			}
    		case 2:
    			if(shutup == 2){
    				screen.displayMessageLine("Goodbye");
    			} // end if
    		default: System.out.println("no thx");
		} // end switch
		
   } // end while
} // end if
}
*/